/*
 * netconfig.h
 *
 *  Copyright (C) 2022-2025 BOQ Inc. All rights reserved.
 *
 *  Created on: 2025年6月25日
 *      Author: fitch
 */

#ifndef SRC_NETCONFIG_H_
#define SRC_NETCONFIG_H_

#ifdef __cplusplus
extern "C" {
#endif

bool get_udhcpc_on(void);

int set_udhcpc_ip(unsigned char *mac);

int get_config_mac(unsigned char *mac);

int set_static_ip(struct in_addr ip, struct in_addr netmask, struct in_addr gateway, unsigned char *mac);

#ifdef __cplusplus
}
#endif

#endif /* SRC_NETCONFIG_H_ */
